package de.pipeGame;

/**
 * The GamePreset contains atm Information about Levels and some general static
 * 
 * @author Anthea
 * 
 */
public abstract class GamePreset {

	private static Level[] gameSets = { 
		new Level(
				Level.createLevelSet(1, 3, 1, 4, 2,0, 1), 
				Level.createStart(0, 0, 1), 
				Level.createTarget(4, 4, 1)) };

	public final static Level getLevel(int nr) {
		return gameSets[nr];
	}
	
	// don't change the ids of the pipes!
	public final static int PIPE_TYPE_CORNER_NW = 0;
	public final static int PIPE_TYPE_CORNER_NE = 1;
	public final static int PIPE_TYPE_CORNER_SE = 2;
	public final static int PIPE_TYPE_CORNER_SW = 3;
	public final static int PIPE_TYPE_LINE_VERTICAL = 4;
	public final static int PIPE_TYPE_LINE_HORIZONTAL = 5;
	public final static int PIPE_TYPE_CROSS = 6;

	public final static int getDrawableForPipeType(int t) {
		switch (t) {
		case PIPE_TYPE_CORNER_NW:
			return R.drawable.pipe_item_corner_nw;
		case PIPE_TYPE_CORNER_NE:
			return R.drawable.pipe_item_corner_ne;
		case PIPE_TYPE_CORNER_SW:
			return R.drawable.pipe_item_corner_sw;
		case PIPE_TYPE_CORNER_SE:
			return R.drawable.pipe_item_corner_se;
		case PIPE_TYPE_CROSS:
			return R.drawable.pipe_item_cross;
		case PIPE_TYPE_LINE_HORIZONTAL:
			return R.drawable.pipe_item_line_horizontal;
		case PIPE_TYPE_LINE_VERTICAL:
			return R.drawable.pipe_item_line_vertical;
		}
		return -1;
	}
}
